// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import iView from 'iview'
import 'iview/dist/styles/iview.css'    // 使用 CSS
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'
import qs from 'qs'
import echarts from 'echarts'// 引入echarts
// import jsonp from 'jsonp'
import dataTool from 'echarts/dist/extension/dataTool.min.js'

Vue.use(iView)
// 使用ElementUI
Vue.use(ElementUI)
//使用echarts
Vue.prototype.$echarts = echarts

Vue.config.productionTip = false

// 设置根路径
axios.defaults.baseURL = '/MT';
//设置全局cookie
axios.defaults.withCredentials = true

new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})
